//
//  RKTestController.swift
//  RKWeibo
//
//  Created by Rick on 2017/3/3.
//  Copyright © 2017年 Ricky. All rights reserved.
//

import UIKit

class RKTestController: RKBaseController {

    override func viewDidLoad() {
        super.viewDidLoad()
        navItem.title = "第\(navigationController?.childViewControllers.count ?? 0)个"
    }
    
    @objc fileprivate func nextButtonClick(){
        let controller = RKTestController()
        navigationController?.pushViewController(controller, animated: true)
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}

extension RKTestController{
    override func setupUI() {
        super.setupUI()
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(nextButtonClick))
    }
}
